<?php

	// +----------------------------------------------------------------------
	// | 店铺等级
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\model\store;

	class StoreVisit extends Common
	{


		/**
		 * 写入修改
		 * @param $data
		 */
		public static function onBeforeInsert($data)
		{
			$data['status'] = 1;
			$data['ip'] = request()->ip();
			$data['os'] = request()->server('HTTP_USER_AGENT');
			$data['token'] = uniqid();
		}


	}
